<#import "../baseftl/page.ftl" as comm />
<#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>管理区域</title>
</head>

<body>
<table class="listView">
	<tr>
		<th><a href="${base}/system/user/list/orderBy/username/order/
		<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml">
		<b>登录名</b></a></th>
		<th><a href="${base}/system/user/list/orderBy/cnname/order/
		<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml"><b>姓名</b></a></th>
		<th><a href="${base}/system/user/list/orderBy/email/order/
		<#if page.getOrder()?default("")=="desc">asc<#else>desc</#if>.shtml"><b>电邮</b></a></th>
		<th><b>角色</b></th>
		<th><b>操作</b></th>
	</tr>
<#list page.result as list>
		<tr>
			<td nowrap="nowrap">${list.username?default("")}&nbsp;</td>
			<td nowrap="nowrap">${list.cnname?default("")}&nbsp;</td>
			<td nowrap="nowrap">${list.email?default("")}&nbsp;</td>
			<td>${list.roles?default("")}&nbsp;</td>
			<td nowrap="nowrap">&nbsp;
				<@security.authorize ifAnyGranted="RES_USER_SAVE">
					<a href="${base}/system/user/input/${list.id?default("")}.shtml">修改</a>&nbsp;
				</@security.authorize>
				<@security.authorize ifAnyGranted="RES_USER_REMOVE">
					<a href="${base}/system/user/delete/${list.id?default("")}.shtml">删除</a>&nbsp;
				</@security.authorize>
			</td>
		</tr>
</#list>
</table>
	<@comm.pages/>
	<@security.authorize ifAnyGranted="RES_USER_SAVE">
		<a href="${base}/system/user/input.shtml">增加新用户</a>
	</@security.authorize>

</body>
</html>